package com.chenyongjing.design.pattern.observer.guava;

import com.google.common.eventbus.Subscribe;

/**
 * @Author chen
 * @Date 2022/12/5 22:04
 */
public class VoEvent {
    /**
     * guava变为观察者的回调
     * @param args
     */
    @Subscribe
    public void observer(Object args){
        if (args instanceof Vo){
            System.out.println("执行VoEvent，传参为："+args.toString());
        }

    }
}
